<template>
  <applyCommon :applyForm="form">

    <template #apply-1>
      <el-form-item label="用车需求" prop="title">
        <el-input v-model="form.title" placeholder="用车需求" class="w300"></el-input>
      </el-form-item>

      <el-form-item label="用车车型" prop="tracfficFrom">
        <el-input v-model="form.tracfficFrom" placeholder="用车车型" class="w300"></el-input>
      </el-form-item>

      <el-form-item label="用车日期" prop="date">
        <el-date-picker
          v-model="form.date"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          value-format="yyyy-MM-dd"
        >
        </el-date-picker>
      </el-form-item>

    </template>

  </applyCommon>
</template>

<script>
  import applyCommon from "./applyCommon";
    export default {
        name: "applyCar",//用车申请
        data(){
            return {
                form:{
                    xmid:'',
                    batch_id: '',
                    company: '',
                    dept: '',
                    ticketName: '',
                    desc: '',
                    created_at: '',
                    title:'',
                    tracfficFrom: '',
                    date:'',
                    type:6,
                },
            }
        },
        components: {applyCommon},
    }
</script>

<style scoped>
  .w300{width:300px;}
</style>
